package priv.mill.abcfactory;

public abstract class YinLiaoFactory {

	public static YinLiaoFactory getYinLiaoFactory(String type){
		if("茶".equals(type))
			return new TeaFactory();
		if("咖啡".equals(type))
			return new CoofeeFactory();
		return null;
		
	}
	
	public abstract YinLiao getYinLiao(String name);

}
